/**
 * 
 */
package com.org.bu.app.jms.service;

import com.org.bu.app.jms.receiver.JmsReceiver;
import com.org.bu.app.jms.sender.JMSSender;

/**
 * @author vk
 * 
 */
public class JMSServiceImpl implements JMSService {

	private JMSSender sender;

	private JmsReceiver receiver;

	public void setSender(JMSSender sender) {
		this.sender = sender;
	}

	public void setReceiver(JmsReceiver receiver) {
		this.receiver = receiver;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.org.bu.app.jms.service.JMSService#process()
	 */
	public void process() {

		sender.sendMesage();
		
		// uncomment below lines for checking in active mq admin GUI
//		try {
//			Thread.sleep(10000);
//		} catch (InterruptedException e) {
//			e.printStackTrace();
//		}
		
//		receiver.processMessage();
	}

}
